<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title>我收藏食谱</title>
		<link rel="stylesheet" href="css/best_recipe.css" />
		<link rel="stylesheet" href="css/view_recipes.css" />
		<link rel="stylesheet" href="css/paging.css" />
		<style>
			.switch {
				position: absolute;
				bottom: -10px;
			}
			
			.device .arrow-left {
				position: absolute;
				left: 10px;
				bottom: 12px;
				margin-top: -15px;
				z-index: 10;
				text-decoration: none;
				color: #FFFFFF;
				font-weight: bolder;
				font-size: 20px;
			}
			
			.device .arrow-right {
				position: absolute;
				right: 10px;
				bottom: 13px;
				z-index: 10;
				text-decoration: none;
				color: #FFFFFF;
				font-weight: bolder;
				font-size: 20px;
			}
			
			.pagination {
				position: absolute;
				left: 0;
				text-align: center;
				bottom: 5px;
				width: 100%;
			}
			
			.swiper-pagination-switch {
				display: inline-block;
				width: 10px;
				height: 10px;
				border-radius: 10px;
				background: #999;
				box-shadow: 0px 1px 2px #555 inset;
				margin: 0 3px;
				cursor: pointer;
			}
			
			.swiper-active-switch {
				background: #fff;
			}
		</style>
	</head>

	<body>
		<header>
			<div class="header">
				<span class="title">我收藏食谱</span>
				<span class="search"></span>
			</div>
		</header>
		<div class="top"></div>
		<div class="cooker">
			<div class="cooker_news">
				<div class="cooker_into">
					<span class="font_id">ID</span>
					<span class="cooker_name">张某某</span>
				</div>
				<div class="cooker_eva">
					<span class="eva_title">成长经验</span>
					<div class="eva_group">
						<span class="eva_icon active"></span>
						<span class="eva_icon active"></span>
						<span class="eva_icon"></span>
						<span class="eva_icon"></span>
						<span class="eva_icon"></span>
						<span class="eva_icon"></span>
					</div>
				</div>
				<div class="blank"></div>
				<div class="cooker_img"></div>
			</div>
			<div class="blank"></div>
		</div>
		<div class="recipe" style="padding: 10px 0;margin-top: 10px;">
			<div class="mode_group">
				<ul class="mode">
					<li class="mode_item">
						<a href="javascript:void(0)">
							<img src="images/modes/meat@2x.png" />
							<span class="mode_name">肉类</span>
						</a>
					</li>
					<li class="mode_item">
						<a href="javascript:void(0)">
							<img src="images/modes/fish@2x.png" />
							<span class="mode_name">河鲜海鲜</span>
						</a>
					</li>
					<li class="mode_item">
						<a href="javascript:void(0)">
							<img src="images/modes/vegetables@2x.png" />
							<span class="mode_name">蔬菜</span>
						</a>
					</li>
					<li class="mode_item">
						<a href="javascript:void(0)">
							<img src="images/modes/rice@2x.png" />
							<span class="mode_name">主食</span>
						</a>
					</li>
					<li class="mode_item">
						<a href="javascript:void(0)">
							<img src="images/modes/soup@2x.png" />
							<span class="mode_name">汤品</span>
						</a>
					</li>
					<li class="mode_item">
						<a href="javascript:void(0)">
							<img src="images/modes/juice@2x.png" />
							<span class="mode_name">饮品</span>
						</a>
					</li>
					<li class="mode_item">
						<a href="javascript:void(0)">
							<img src="images/modes/sauce@2x.png" />
							<span class="mode_name">酱料</span>
						</a>
					</li>
					<li class="mode_item">
						<a href="javascript:void(0)">
							<img src="images/modes/mores@2x.png" />
							<span class="mode_name">一锅三菜</span>
						</a>
					</li>
					<div class="blank"></div>
				</ul>
				<ul class="mode">
					<li class="mode_item">
						<a href="javascript:void(0)">
							<img src="images/modes/bread@2x.png" />
							<span class="mode_name">面包</span>
						</a>
					</li>
					<li class="mode_item">
						<a href="javascript:void(0)">
							<img src="images/modes/dessert@2x.png" />
							<span class="mode_name">甜品</span>
						</a>
					</li>
					<li class="mode_item">
						<a href="javascript:void(0)">
							<img src="images/modes/sum@2x.png" />
							<span class="mode_name">中式点心</span>
						</a>
					</li>
					<li class="mode_item">
						<a href="javascript:void(0)">
							<img src="images/modes/others@2x.png" />
							<span class="mode_name">其他</span>
						</a>
					</li>
					<div class="blank"></div>
				</ul>
			</div>
			<div class="classify">
				<div class="tab_item" style="padding:5px 15px 0 15px;margin-top: -10px;">
					<div class="device">
						<dl class="page_item page_active">
							<dd class="tab_li">
								<div class="li_inner">
									<img src="images/best_recipe/tang@3x.png" alt="食谱图" />
									<span class="food_name">蘑菇浓汤</span>
									<span class="author_name">张某某</span>
									<span class="see">查看食谱</span>
								</div>
							</dd>
							<dd class="tab_li">
								<div class="li_inner">
									<img src="images/best_recipe/tang@3x.png" alt="食谱图" />
									<span class="food_name">蘑菇浓汤</span>
									<span class="author_name">张某某</span>
									<span class="see">查看食谱</span>
								</div>
							</dd>
							<dd class="tab_li">
								<div class="li_inner">
									<img src="images/best_recipe/tang@3x.png" alt="食谱图" />
									<span class="food_name">蘑菇浓汤</span>
									<span class="author_name">张某某</span>
									<span class="see">查看食谱</span>
								</div>
							</dd>
							<dd class="tab_li">
								<div class="li_inner">
									<img src="images/best_recipe/tang@3x.png" alt="食谱图" />
									<span class="food_name">蘑菇浓汤</span>
									<span class="author_name">张某某</span>
									<span class="see">查看食谱</span>
								</div>
							</dd>
							<dd class="tab_li">
								<div class="li_inner">
									<img src="images/best_recipe/tang@3x.png" alt="食谱图" />
									<span class="food_name">蘑菇浓汤</span>
									<span class="author_name">张某某</span>
									<span class="see">查看食谱</span>
								</div>
							</dd>
							<dd class="tab_li">
								<div class="li_inner">
									<img src="images/best_recipe/tang@3x.png" alt="食谱图" />
									<span class="food_name">蘑菇浓汤</span>
									<span class="author_name">张某某</span>
									<span class="see">查看食谱</span>
								</div>
							</dd>
							<div class="blank"></div>
						</dl>
						<dl class="page_item"></dl>
						<dl class="page_item"></dl>
						<div class="page_bottom">
							<div class="back_recip">
								<img src="images/new/m_back@2x.png" style="width: 25px;" />
							</div>
							<div id="pageToolbar"></div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="mine_recipes">
			<div class="collect_recip2 upload2">
				<div class="recip_layer2">
					<a href="upload_mine.html">
						<span class="mine_title">我上传的食谱</span>
						<span class="mine_logo">Collection</span>
					</a>
				</div>
			</div>
		</div>
		<div class="footer_help"></div>
		<footer>
			<div class="footer_container">
				<div class="footer_item">
					<div class="item_inner">
						<a href="jacascript:void(0)">
							<span class="home_icon"></span>
							<span class="footer_name">主页</span>
						</a>
					</div>
				</div>
				<div class="footer_item">
					<div class="item_inner2">
						<a href="javascript:void(0)">
							<span class="add_icon"></span>
						</a>
					</div>
				</div>
				<div class="footer_item">
					<div class="item_inner3">
						<a href="jacascript:void(0)">
							<span class="mine_icon"></span>
							<span class="footer_name">我的食谱</span>
						</a>
					</div>
				</div>
				<div class="blank"></div>
			</div>
		</footer>
		<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
		<script type="text/javascript" src="js/idangerous.swiper.min.js"></script>
		<script type="text/javascript" src="js/query.js" ></script>
		<script type="text/javascript" src="js/paging.js" ></script>
		<script>
			var mySwiper = new Swiper('.swiper-container', {
				pagination: '.pagination',
				grabCursor: true,
				paginationClickable: true
			})
			$(function() {
					getPage();
				})
				//监听页面滑动
			function getPage() {
				var page = $(".page_item").length;
				$('#pageToolbar').Paging({
					pagesize: 1,
					count: page,
					toolbar: true,
					callback: function(page, size, count) {
						$('.page_item:nth-of-type(' + page + ')').addClass('page_active').siblings().removeClass('page_active');
					}
				});
			}
            $('.back_recip').click(function() {
				$('.mode_group').show();
				$('.tab_item').removeClass('tab_active');
			})
			$('.mode_item').click(function() {
				$('.mode_group').hide();
				$('.tab_item').addClass('tab_active');
			})
		</script>
	</body>